﻿@model Post
@{
    this.ViewBag.Title = this.Model.Title;
    var meta = Model.GetMeta();
}

<html>
<head>
    <title>@ViewBag.Title</title>
    <meta property="og:type" content="article" />
    <meta property="og:title" content="@meta.Title" />
    <meta property="og:description" content="@meta.Description" />
    <meta property="og:url" content="@meta.Url" />
    <meta property="og:site_name" content="@meta.Site" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    @foreach (var tag in meta.Tags)
    {
        <meta property="article:tag" content="@tag" />
    }
    @foreach (var category in meta.Categories)
    {
        <meta property="article:section" content="@category" />
    }
    <meta property="article:published_time" content="@meta.PublishedTime" />
    <meta property="article:modified_time" content="@meta.UpdatedTime" />
    <style>
        img {
            width: 100%;
        }

        pre {
            width: 100%;
            white-space: pre-wrap;
        }
    </style>
</head>
<body>
    <h1>@this.Model.Title</h1>
    <div>
        @this.Html.Raw(this.Model.HighlightedContents)
    </div>
</body>
</html>


